package com.itheima.Generics;

public class MyGenericsDemo3 {
    public static void main(String[] args) {

        MyArrayList2 list = new MyArrayList2();
        list.add("aaa");
        System.out.println(list);

        MyArrayList3<String> list3 = new MyArrayList3<>();
        list.add("aaa");
        list.add("nnn");
        System.out.println(list3);
    }
}
